/* say hello "world" to vvvv and a blinking LED
 * ------------
 *
 * sends an string via serial port to vvvv
 * the classic hello word example 
 * plus lets a led on digital pin 13 blinkin
 *
 * 17-01-2006
 * copyleft 2006 benedikt gross 
 * <http://www.looksgood.de>
*/
 

int ledPin = 13;                // LED connected to digital pin 13

void setup()
{
  pinMode(ledPin, OUTPUT);      // sets the digital pin as output
  beginSerial(9600);            // initializes serial port
}

void loop()
{
  printString("hello VVVV");    // sends a string via the serial port
  //linebreak
  serialWrite(10);              // sends '\n' = ASCII 10
  serialWrite(13);              // sends '\r' = ASCII 13
  
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(100);                   // waits for a second
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(100);                   // waits for a second
}
